package com.xiaoxu.spzx.manager.service;

import com.github.pagehelper.PageInfo;
import com.xiaoxu.spzx.model.dto.system.AssignRoleDto;
import com.xiaoxu.spzx.model.dto.system.LoginDto;
import com.xiaoxu.spzx.model.dto.system.SysUserDto;
import com.xiaoxu.spzx.model.entity.system.SysUser;
import com.xiaoxu.spzx.model.vo.system.LoginVo;

/**
 * ClassName:SysUserService
 * Description:
 *
 * @author: 徐廷泉
 * @Create 2024/1/14 10:42
 */

public interface SysUserService {
    //用户登录
    LoginVo login(LoginDto loginDto);
    //获取用户信息
    SysUser getUserInfo(String token);

    //用户退出
    void logout(String token);

    //用户分页条件查询
    PageInfo<SysUser> selectByPage(Integer pageNum, Integer pageSize, SysUserDto sysUser);

    //用户添加
    void saveSysUser(SysUser sysUser);
    //用户修改
    void updateSysUser(SysUser sysUser);

    //删除
    void deleteById(Long userId);
    //用户分配角色  -> 2.
    void doAssign(AssignRoleDto assignRoleDto);
}
